
//
//  HMHomeTableViewController.swift
//  Weibo
//
//  Created by 曾成 on 2017/6/4.
//  Copyright © 2017年 WickzZ. All rights reserved.
//

import UIKit

class HMHomeTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
        
    }

   //设置导航栏按钮
    private func setupUI(){
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(title:"注册",target:self,action:#selector(registerButtonAction))
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"登录",target:self,action:#selector(loginButtonAction))
        
    }
    
    //导航栏按钮点击事件
    @objc private func registerButtonAction(){
    
        print("注册成功")
    }
    @objc private func loginButtonAction(){
        
        print("登录成功")
    }
}
